package com.woniuxy.dao;

import com.woniuxy.pojo.Manager;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

public interface ManagerDao {
    Map<String,String> getOne(int id);
    int addOne(@Param("map") Map<String,String> map);

    //查询
    public Manager findById(int id);
    //增加
    public void add(Manager manager);
    //更新
    public void update(Manager manager);
    //删除
    public void deleteById(int id);
    //删除by用户
    public void deleteByAccount(String account);
    //找到
    public Manager findByAccount(String account);
}